<?php
/** ************************
	Php Quran - 2009
Copyrights for all muslims
***************************/

function aheader($title = '')
{
	echo '<html dir="rtl"><head><title>لوحة التحكم - ' . $title . '</title></head><body><h1>phpquran - acp [coded by alta3rq & phpfalcon]</h1>
	<a href="index.php?go=settings">الاعدادات</a> | 
	<a href="index.php?go=admins">المدراء</a> |
	<a href="index.php?go=r">القراء</a> | 
	<a href="index.php?go=telawat">التلاوات</a><br /><hr /> <br />';
}

function aerror($msg = '')
{
	aheader('error');
	echo '<div style="color:red;"><strong>' . $msg . '</storng></div>';
	afooter();
}

function ainfo($msg = '')
{
	aheader('info');
	echo '<div style="color:green;"><strong>' . $msg . '</storng></div>';
	afooter();
}

function afooter()
{
	global $SQL;
	echo '<br /><hr /><em>phpquran acp - Copyrights for all muslims</em></body></html>';
	$SQL->close();
	exit;
}

function authenticate() //acp auth
{ 
	global $SQL;
	header( 'WWW-Authenticate: Basic realm="Private"' ); 
	header( 'HTTP/1.0 401 Unauthorized' ); 
	//echo('PhpQuran ACP');
	$SQL->close(); 
	exit; 
} 